<?php
$page_title = "Sondaj - Fifaonline.ro";
include_once("top.php"); 
?>
<?php
require_once("/includes/mysql_connect.php");
$query8 = "SELECT poll_id, group_name, data, votes, type FROM polls WHERE type = 'q'";
$result8 = @mysql_query($query8);
$count = 0;
while($row = mysql_fetch_array($result8, MYSQL_ASSOC))
{
	$postValue = $row['group_name'];
	echo "<fieldset>";
	echo "<p class = 'text3'><a href='pollbygroupname.php?groupname=" . $postValue . "'>".$count += 1 ."";
	$group_name = $row['group_name'];
	$query = "SELECT data FROM polls WHERE group_name ='" .$group_name. "'";
	$result = mysql_query($query);
	echo ".".$row['data']."</a></p>";
	$query3 = "SELECT data FROM polls WHERE type = 'a' AND group_name ='" .$group_name. "'";
	$result3 = mysql_query($query3);
	while($row2 = mysql_fetch_array($result3))
	{
		echo "<p class='text4'>".$row2["data"]."</p>";
		echo "<br>";
	}
	echo "</fieldset>";
	echo "<br>";
}
mysql_close();
?>
<?php
include_once("end.php")
?>